package com.yaxin.mq.entity;

import lombok.Data;
import org.springframework.amqp.rabbit.connection.CorrelationData;

/**
 * @author lgj
 * @version 1.0
 * @description 封装消息路由信息
 * @date 2025/7/18 16:52
 */
@Data
public class CustomCorrelationData extends CorrelationData {
    private String exchange;
    private String routingKey;
    private Object messageBody; // 真实消息体（Object或json字符串）

    public CustomCorrelationData(String id) {
        super(id);
    }
}
